﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace ProcessFile
{
   public class SubStackItem
    {
        public string SubStackId { set; get; }
        public string SubName { set; get; }
        public static string GetLayerID(string input)
        {
            string pattern = @"(?<layerId>[A-F|0-9|\-]{36})\}";
            Regex regex = new Regex(pattern);
            Match match = regex.Match(input);
            if (match.Success)
            {
                return match.Groups["layerId"].Value;
            }
            return "";
        }
    }

}
